//
//  YQUserInfoManager.m
//  EPA--1
//
//  Created by lanou3g on 16/4/27.
//  Copyright © 2016年 刘永庆. All rights reserved.
//

#import "YQUserInfoManager.h"

@implementation YQUserInfoManager
+ (instancetype)shareManager
{
    static YQUserInfoManager *manager = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        manager = [[YQUserInfoManager alloc]init];
    });
    return manager;
}
- (void)loginManagerrWithDic:(NSDictionary *)dic
{
    if (dic) {
        [self setValuesForKeysWithDictionary:dic];
    }
    
}
- (void)setValue:(id)value forKey:(NSString *)key
{
    [super setValue:value forKey:key];
    [[NSUserDefaults standardUserDefaults] setValue:value forKey:key];
    [[NSUserDefaults standardUserDefaults] synchronize];
}
//- (void)setValue:(id)value forUndefinedKey:(NSString *)key
//{
//    [super setValue:value forUndefinedKey:key];
//}
@end
